<?php 
session_start();  
if($_SESSION['user'])
{
require_once("dbconnect.php");
$id=$_SESSION['user'];
//echo $id;
$sql="select * from executives where exe_name='$id';";
$result=mysql_query($sql);
while($row=mysql_fetch_assoc($result))
{
$name=$row['exe_name'];
//echo $name;
$id=$row['id'];
}
}
else 
{
header("Location:login.php");  
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>KK Circuits &amp; Equipments E-Reporting</title>

<link href="css/css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.6.min.js"></script>	
<script language="javascript" src="js/calendar_eu.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.17.custom.min.js"></script>	
<link rel="stylesheet" href="css/jquery-ui-1.8.17.custom.css">

</head>
<style>
	#editor{
	width:95%;
	}
	#remarksEditor{
	width:95%;
	}
	#nextsteppopup {
	position:absolute;
  z-index:200; /* aaaalways on top*/
  padding: 3px;
 
  width: 250px;
  color: white;
	}
	.ui-dialog .ui-state-error { padding: .3em; }
	.ui-corner-all{
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	font-weight: normal;
	color: #666666;
	text-decoration: none;
	}
	.ui-corner-all:hover{
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	font-weight: normal;
	color: #666666;
	text-decoration: none;
	}
	.logout{
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	height: 15px;
	width: 50px;
	font-weight: normal;
	color: red;
	text-decoration: none;
	}
	#bulletinDialog title{
	font-family:Arial, Helvetica, sans-serif;
	font-size:14px;
	font-weight:bold;
	}
	</style>


<script  type="text/javascript">
$(document).ready(function(){
$('.popup').live('click',function(){
var id=this.id;
//alert(id);
var $dialog = $('#bulletinDialog').dialog({
                autoOpen: false,
                modal: true,
                width: 285,
                height: 230,
				
				
            });
 			$("#editor").attr("class", id);
			var text=$("#nst"+id).val();
			$("."+id).val(text);
           // $("#bulletinDialog").parent().appendTo($("form:first"));
 
            $dialog.dialog('open');
});
});

		
    </script>
<script  type="text/javascript">
$(document).ready(function(){
$('.popup2').live('click',function(){
var id=this.id;
//alert(id);
var $dialog = $('#remarksDialog').dialog({
                autoOpen: false,
                modal: true,
                width: 285,
                height: 230
				
            });
 			$("#remarksEditor").attr("class", id);
			var text=$("#rem"+id).val();
			$("."+id).val(text);
           // $("#bulletinDialog").parent().appendTo($("form:first"));
 
            $dialog.dialog('open');
});
});

		
    </script>
	<script>
	$(document).ready(function(){
$('.tablebox-form').live('click',function(){
	
	var id=this.id;
	
		var availableTags = [
			"Advaithsoft",
			"APJENCO",
			"APSRTC",
			"BHEL",
			"BPCL",
			"CDOL",
			"Clojure",
			"COBOL",
			"ColdFusion",
			"Ecil",
			"Fortran",
			"CHARMINAR",
			"HPCL",
			"IOCL",
			"JPCEMENT",
			"JavaScript",
			"LAns",
			"Perl",
			"POCL",
			"PMCL",
			"Ruby",
			"SOCL",
			"SHAR"
		];
		
		
		$('#'+id).autocomplete({
			source: availableTags
		});
		jQuery('.ui-autocomplete').css({'font-size':'10px','font-family':'Arial','max-height': '100px',
	'overflow-y': 'auto', 'padding-right': '20px', 'overflow-x': 'hidden'});
	
	})
	});
	
	</script>
<script language="javascript">

        function addRow(infotable) {
 
            var table = document.getElementById(infotable);
 			var rowCount = table.rows.length;
			var row = table.insertRow(rowCount);
			row.className="tablebox-form";
		    var cell1 = row.insertCell(0);
            var element1 = document.createElement("input");
            element1.type = "checkbox";
            cell1.appendChild(element1);
 			
			
            var cell2 = row.insertCell(1);
            cell2.innerHTML = rowCount ;
 
            var cell3 = row.insertCell(2);
			
			var element2 = document.createElement("input");
            element2.type = "text";
			element2.name="in[]";
			element2.id="in[]";
			element2.className="tablebox-form";
			element2.size="3";
            cell3.appendChild(element2);
			
			var cell4 = row.insertCell(3);
			
			var element3 = document.createElement("input");
			element3.type = "text";
			element3.name="out[]";
			element3.id="out[ ]";
			element3.className="tablebox-form";
			element3.size="3";
            cell4.appendChild(element3);
			
			
			 var cell5 = row.insertCell(4);
			/* cell5.innerHTML='<input name="org[]"  id="org4" type="text" class="tablebox-form" size="8"  />';*/
	/* cell5.innerHTML='<input name="org[]" class="tablebox-form" id="org"'+rowCount+' type="text" size="8" onblur = "update()"/>'*/
			 var element4 = document.createElement("input");
			element4.type = "text";
			element4.name="org[]";
			element4.id="org"+rowCount;
			element4.className="tablebox-form";
			element4.size="8";
			element4.onblur=function(){update()};
            cell5.appendChild(element4);
			
			var cell6 = row.insertCell(5);
			 var element5 = document.createElement("input");
			element5.type = "text";
			element5.name="industry[ ]";
			element5.id="industry[ ]";
			element5.className="tablebox-form";
			element5.size="8";
            cell6.appendChild(element5);
			
			 var cell7 = row.insertCell(6);
			 cell7.innerHTML='<select name="elp[]" id="elp" class="form-ui2">'
			 			+' <option>Select</option>'
                       +' <option>Existing</option>'
                       +' <option>Lapsed</option>'
                      +' <option>Project</option>'
                      +'</select>';
			/*  var element6 = document.createElement("select");
			element6.type = "text";
			element6.name="elp[ ]";
			element6.id="elp[ ]";
			element6.className="tablebox-form";
			element6.size="8";
            cell7.appendChild(element6);*/
			
			var cell8 = row.insertCell(7);
			 var element7 = document.createElement("input");
			element7.type = "text";
			element7.name="contper[ ]";
			element7.id="contper[ ]";
			element7.className="tablebox-form";
			element7.size="8";
            cell8.appendChild(element7);
			
			 var cell9 = row.insertCell(8);
			  var element8 = document.createElement("input");
			element8.type = "text";
			element8.name="disig[ ]";
			element8.id="disig[ ]";
			element8.className="tablebox-form";
			element8.size="8";
            cell9.appendChild(element8);
			 
			var cell10 = row.insertCell(9);
			 var element9 = document.createElement("input");
			element9.type = "text";
			element9.name="tel[ ]";
			element9.id="tel[ ]";
			element9.className="tablebox-form";
			element9.size="8";
            cell10.appendChild(element9);
			 
			
		    var cell11 = row.insertCell(10);
	 cell11.innerHTML='<select name="obj[]" class="form-ui-exsmall" id="obj" >'
                        +'<option value="0">Obj</option>'
					    +'<option value="1">1</option>'
                       +'<option value="2">2</option>'
                        +'<option value="3">3</option>'
                         +'<option value="4">4</option>'
                        +'<option value="5">5</option>'
                       +'<option value="6">6</option>'
                         +'<option value="7">7</option>'
                        +'<option value="8">8</option>'
                       +'<option value="9">9</option>'
                        +'<option value="10">10</option>'
                        +'<option value="11">11</option>'
                       +'<option value="12">12</option>'
                                +'</select>';
			/*var element10 = document.createElement("input");
			element10.type = "text";
			element10.name="obj[ ]";
			element10.id="obj[ ]";
			element10.className="tablebox-form";
			element10.size="8";
            cell11.appendChild(element10);*/
			
			var cell12 = row.insertCell(11);
			 cell12.innerHTML='<select name="outcome[]" class="form-ui-exsmall" id="outcome" >'
			           +'<option value="0">O/C</option>'
                        +'<option value="1">1</option>'
                       +'<option value="2">2</option>'
                        +'<option value="3">3</option>'
                         +'<option value="4">4</option>'
                        +'<option value="5">5</option>'
                       +'<option value="6">6</option>'
                         +'<option value="7">7</option>'
                        +'<option value="8">8</option>'
                       +'<option value="9">9</option>'
                        +'<option value="10">10</option>'
                        +'<option value="11">11</option>'
                       +'<option value="12">12</option>'
					    +'<option value="13">13</option>'
                        +'<option value="14">14</option>'
                        +'<option value="15">15</option>'
                       +'<option value="16">16</option>'
                                +'</select>';
			/*var element11 = document.createElement("input");
			element11.type = "text";
			element11.name="outcome[ ]";
			element11.id="outcome[ ]";
			element11.className="tablebox-form";
			element11.size="8";
            cell12.appendChild(element11);*/
					
			
			/* var cel113 = row.insertCell(12);
			 cell13.innerHTML='<input type="text" name="nst1" id="nst1"/>';*/
			  var cell13 = row.insertCell(12);
			cell13.innerHTML='&nbsp;&nbsp;';
            var hidElement2=document.createElement("input");
		   hidElement2.type="hidden";
		   hidElement2.name="nst[]";
		   hidElement2.id="nstpop"+rowCount;
		    cell13.appendChild(hidElement2);
			
		   var element12 = document.createElement("img");
			element12.setAttribute("src", "images/arrow-li.gif");
			element12.setAttribute("id", "pop"+rowCount);
			element12.setAttribute("width", "26");
			element12.setAttribute("height", "22");
			element12.setAttribute("border", "0");
			element12.setAttribute("align", "middle");
			element12.className="popup";
            cell13.appendChild(element12);
			
			
			var cell14 = row.insertCell(13);
			var element13 = document.createElement("input");
			element13.type = "text";
			element13.name="kms[ ]";
			element13.id="kms[ ]";
			element13.className="tablebox-form";
			element13.size="8";
            cell14.appendChild(element13);
			
			 var cell15 = row.insertCell(14);
			 cell15.innerHTML='&nbsp;&nbsp;&nbsp;';
			  var hidElement3=document.createElement("input");
		   hidElement3.type="hidden";
		   hidElement3.name="rem[]";
		   hidElement3.id="remrepop"+rowCount;
		    cell15.appendChild(hidElement3);
           
		   var element14 = document.createElement("img");
			element14.setAttribute("src", "images/arrow-li.gif");
			element14.setAttribute("id", "repop"+rowCount);
			element14.setAttribute("width", "26");
			element14.setAttribute("height", "22");
			element14.setAttribute("border", "0");
			element14.setAttribute("align", "middle");
			element14.className="popup2";
            cell15.appendChild(element14);
			   
			var cell16 = row.insertCell(15);
			cell16.innerHTML='&nbsp;&nbsp;&nbsp;';
			 cell16.setAttribute("bgColor","#FEF5E7");
			var aTag = document.createElement('a');
			aTag.setAttribute('href',"New Enquiry.php");
			aTag.setAttribute('target',"_blank");
			 
			var enqImg= document.createElement("img");
			enqImg.setAttribute("src", "images/enquiry.jpg");
			enqImg.setAttribute("align", "middle");
			enqImg.setAttribute("id", "enq"+rowCount);
			
			aTag.appendChild(enqImg);
			cell16.appendChild(aTag);

			        
 
        }
 
        function deleteRow(infotable) {
            try {
            var table = document.getElementById(infotable);
            var rowCount = table.rows.length;
 
            for(var i=0; i<rowCount; i++) {
                var row = table.rows[i];
                var chkbox = row.cells[0].childNodes[0];
                if(null != chkbox && true == chkbox.checked) {
                    table.deleteRow(i);
                    rowCount--;
                    i--;
                }
 
            }
			for(var i=0; i<rowCount-1; i++)

           table.rows[i+1].cells[1].innerHTML = i+1;
            }catch(e) {
                alert(e);
            }
        }
 
    </script>
    <script>

	$(function() {
		$( "#datepicker" ).datepicker({ dateFormat: "dd-mm-yy" });
	});
	</script>
<body>
<form action="enquiry.php" method="post" name="myform"><table width="927" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td height="116" align="left" valign="top" background="images/top-bg.jpg" style="background-repeat:repeat-x; background-position:left top"><table width="927" height="116" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="567"><img src="images/logo.jpg" width="387" height="81" /></td>
        <td width="336" align="right"><table width="300" border="0" align="right" cellpadding="0" cellspacing="0">
          <tr>
            <td class="hed">&nbsp;</td>
            <td class="hed">Executive Name </td>
            <td><span class="hed">:</span></td>
            <td>
                
                <input name="name" type="text" value="<?php echo $name;?>"  class="form-ui" placeholder="" />
                          </td>
          </tr>
          <tr>
            <td width="53"  height="5"></td>
            <td width="97" height="5"></td>
            <td width="15" height="5"></td>
            <td width="135" height="5"></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td class="hed">Area</td>
            <td class="hed">:</td>
            <td><input name="area" type="text" class="form-ui" placeholder="" /></td>
          </tr>
          <tr>
            <td height="5"></td>
            <td height="5"></td>
            <td height="5"></td>
            <td height="5"></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td class="hed">Date</td>
            <td class="hed">:</td>
            <td><input name="date" type="text" class="form-ui"  id="datepicker" placeholder="Enter Date" />                  </td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
        </table>        </td>
        <td width="24">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="600" align="left" valign="top"><table width="927" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="20">&nbsp;</td>
        <td width="643" align="right"><a href="logout.php">
          <span class="logout" >Logout</span>
        </a></td>
        <td width="20">&nbsp;</td>
      </tr>
      <tr>
        <td width="20">&nbsp;</td>
        <td align="center" valign="top" class="heading">Daily Call Report </td>
        <td width="20">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td align="center"><?php echo $_REQUEST['msg']; ?></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td align="center" valign="top"><table width="870" border="0" cellspacing="0" cellpadding="0">
       <tr>
            <td align="left" valign="top">
           <table width="895" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td>
                <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#F7A886" class="tablebox" id="infoTable">
                  <tr background="images/hed-bg.jpg" style="background-repeat:repeat-x; background-position:left top">
                    <td width="34" align="center" valign="middle" class="hed">Select</td>
                    <td width="18" height="40" align="center" valign="middle" class="hed"><strong>Sr. No </strong></td>
                    <td colspan="2" align="center" valign="middle" class="hed"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td colspan="2" align="center"><strong>Time </strong></td>
                        </tr>
                        <tr>
                          <td height="1" align="center" valign="top" bgcolor="#F7A886"></td>
                          <td height="1" align="center" valign="top" bgcolor="#F7A886"></td>
                        </tr>
                        <tr>
                          <td width="48%" align="center" valign="top">In</td>
                          <td width="52%" align="center" valign="top">Out</td>
                        </tr>
                    </table></td>
                    <td width="70" align="center" valign="middle" class="hed"><strong>Organisation</strong></td>
                    <td width="64" align="center" valign="middle" class="hed"><strong>Industry Type </strong></td>
                    <td width="62" align="center" valign="middle" class="hed"><strong>E/L/P</strong></td>
                    <td width="80" align="center" valign="middle" class="hed"><strong>Contact Person </strong></td>
                    <td width="84" align="center" valign="middle" class="hed"><strong>Designation</strong></td>
                    <td width="72" align="center" valign="middle" class="hed"><strong>Telephone Number </strong></td>
                    <td colspan="2" align="center" valign="middle" class="hed"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td colspan="2" align="center"><strong>Visit </strong></td>
                        </tr>
                        <tr>
                          <td height="1" align="center" valign="top" bgcolor="#F7A886"></td>
                          <td height="1" align="center" valign="top" bgcolor="#F7A886"></td>
                        </tr>
                        <tr>
                          <td width="48%" align="center" valign="top">Obj</td>
                          <td width="52%" align="center" valign="top">o/c</td>
                        </tr>
                    </table></td>
                    <td width="40" align="center" valign="middle" class="hed"><strong>Next Steps </strong></td>
                    <td width="65" align="center" valign="middle" class="hed"><strong>Kms..</strong></td>
                    <td width="55" align="center" valign="middle" class="hed"><strong>Remarks</strong></td>
                    <td width="55" align="center" valign="middle" class="hed">&nbsp;</td>
                  </tr>
                  <tr>
                    <td height="22" bgcolor="#FEF5E7"><input type="checkbox" name="checkbox" value="checkbox" />                    </td>
                    <td bgcolor="#FEF5E7">1</td>
                    <td width="20" bgcolor="#FEF5E7"><input name="in[]" id="in []" type="text"  size="3" />                    </td>
                    <td width="20" bgcolor="#FEF5E7"><input name="out[]" id="out[]" type="text" size="3" />                    </td>
                    <td bgcolor="#FEF5E7"><input name="org[]" class="tablebox-form" id="org1" type="text" size="8" onblur = "update()"  /></td>
                    <td bgcolor="#FEF5E7"><input name="industry[]" id="industry[]" type="text" size="8" /></td>
                    <td bgcolor="#FEF5E7"><select name="elp[]" id="elp[]" class="form-ui2">
                      <option value="select">Select</option>
                      <option value="Existing">Existing</option>
                      <option value="Lapsed">Lapsed</option>
                      <option value="Project">Project</option>
                    </select></td>
                    <td bgcolor="#FEF5E7"><input name="contper[]" id="contper[]" type="text" size="8" /></td>
                    <td bgcolor="#FEF5E7"><input name="disig[]" id="disig[]2" type="text" size="8" /></td>
                    <td bgcolor="#FEF5E7"><input name="tel[]"  id="tel[]" type="text" size="8" /></td>
                    <td width="40" bgcolor="#FEF5E7"><select name="obj[]" class="form-ui-exsmall" id="obj" >
                      <option value="object">Obj</option>
                      <option value="1">1</option>
                      <option value="2">2</option>
                      <option value="3">3</option>
                      <option value="4">4</option>
                      <option value="5">5</option>
                      <option value="6">6</option>
                      <option value="7">7</option>
                      <option value="8">8</option>
                      <option value="9">9</option>
                      <option value="10">10</option>
                      <option value="11">11</option>
                      <option value="12">12</option>
                    </select></td>
                    <td width="40" bgcolor="#FEF5E7"><select name="outcome[]" class="form-ui-exsmall" id="outcome[]">
                      <option value="objc">O/C</option>
                      <option value="1">1</option>
                      <option value="2">2</option>
                      <option value="3">3</option>
                      <option value="4">4</option>
                      <option value="5">5</option>
                      <option value="6">6</option>
                      <option value="7">7</option>
                      <option value="8">8</option>
                      <option value="9">9</option>
                      <option value="10">10</option>
                      <option value="11">11</option>
                      <option value="12">12</option>
                      <option value="13">13</option>
                      <option value="14">14</option>
                      <option value="15">15</option>
                      <option value="16">16</option>
                    </select></td>
                    <td align="center" bgcolor="#FEF5E7"><img src="images/arrow-li.gif" width="26" height="22" border="0" align="absmiddle" id="pop1" class="popup"/>
                    <div id="bulletinDialog" style="display: none;" title="Nextstep">
                    <textarea id="editor"  name="Message" rows="10" ></textarea> 
                    <input class="button-right" type="button" id="ok" value="ok" id="pop"/>
                     </div>
                     <input type="hidden" name="nst[]" id="nstpop1"/></td>
                    <td bgcolor="#FEF5E7"><input name="kms[]" id="kms[]" type="text" size="3" /></td>
                    <td align="center" bgcolor="#FEF5E7"><img src="images/arrow-li.gif" width="26" height="22" border="0" align="absmiddle"  name="tarea1" id="repop1" class="popup2"/>
                    <div id="remarksDialog" style="display: none;" title="Remarks">
                    <textarea id="remarksEditor"  name="Message" rows="10" ></textarea>
                     <input class="button-right" type="button" id="save" value="OK" />
                     </div>
                      <br />
                      <input type="hidden" name="rem[]" id="remrepop1"/></td>
                    <td align="center" bgcolor="#FEF5E7"><a href="New Enquiry.php" target="_blank"><img src="images/enquiry.jpg" align="middle" id="enq1"/> </a></td>
                  </tr>
                </table>                  </td>
              </tr>
              <tr>
                <td height="10" align="left" valign="top"></td>
              </tr>
              <tr>
                <td align="left" valign="top"><input type="button" name="Submit4" value="Add" onclick="addRow('infoTable')" class="button" />
                    <input type="button" name="Submit4" value="Delete" onclick="deleteRow('infoTable')" class="button" />                    </td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td><table width="895" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="528" align="left" valign="top"><table width="500" border="0" align="left" cellpadding="5" cellspacing="1" bgcolor="#FCE0B6">
                        <tr>
                          <td height="40" colspan="2" bgcolor="#FFECCC" class="hed-blc">Day Activity </td>
                          <td colspan="2" bgcolor="#FFECCC" class="hed-blc">Sales Performance</td>
                        </tr>
                        <tr>
                          <td width="199" bgcolor="#FEF5E7" class="content">Organization Visited &nbsp;&nbsp;&nbsp;&nbsp;</td>
                          <td width="26" bgcolor="#FEF5E7" class="content"><input name="count" id="count" type="text"  size="3" readonly /></td>
                          <td width="206" bgcolor="#FEF5E7" class="content">Target for the Month </td>
                          <td width="24" bgcolor="#FEF5E7" class="content"><input name="target[]" id="target[]" type="text"  size="3" /></td>
                        </tr>
                        <tr>
                          <td bgcolor="#FEF5E7" class="content">contacts met: </td>
                          <td bgcolor="#FEF5E7" class="content"><input name="contacts[]" id="contacts[]" type="text"  size="3" /></td>
                          <td bgcolor="#FEF5E7" class="content">Todays actuals </td>
                          <td bgcolor="#FEF5E7" class="content"><input name="todays[]" id="todays[]" type="text"  size="3" /></td>
                        </tr>
                        <tr>
                          <td height="21" bgcolor="#FEF5E7" class="content">Distance Travelled</td>
                          <td bgcolor="#FEF5E7" class="content"><input name="distance[]" id="distance[]" type="text"  size="3" /></td>
                          <td bgcolor="#FEF5E7" class="content">MTD actuals </td>
                          <td bgcolor="#FEF5E7" class="content"><input name="mtd[]" id="mtd[]" type="text"  size="3" /></td>
                        </tr>
                        <tr>
                          <td bgcolor="#FEF5E7" class="content">Local Conveyance(Rs): </td>
                          <td bgcolor="#FEF5E7" class="content"><input name="locacon[]" id="localcon" type="text"  size="3" /></td>
                          <td bgcolor="#FEF5E7" class="content">% achievement against month target </td>
                          <td bgcolor="#FEF5E7" class="content"><input name="achieve[]" id="achieve" type="text"  size="3" /></td>
                        </tr>
                        <tr>
                          <td bgcolor="#FEF5E7" class="content">Travel stay related expenses(RS) </td>
                          <td bgcolor="#FEF5E7" class="content"><input name="tstay[]" id="tstay[]" type="text"  size="3" /></td>
                          <td bgcolor="#FEF5E7" class="content">Balance to achieve </td>
                          <td bgcolor="#FEF5E7" class="content"><input name="bachieve[]" id="bachieve" type="text"  size="3" /></td>
                        </tr>
                    </table></td>
                    <td width="367" align="left" valign="top"><table width="367" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td><strong class="content">If in the office, assaignments done today: </strong></td>
                        </tr>
                        <tr>
                          <td height="8"></td>
                        </tr>
                        <tr>
                          <td><textarea name="textarea" class="input1"></textarea>                          </td>
                        </tr>
                    </table></td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td height="5"></td>
              </tr>
              <tr>
                <td><input type="submit" name="Submit" value="Submit" class="button-right" onclick="javascript: validate()"/></td>
              </tr>
            </table>                       </td>
  </tr>
         
          <tr>
            <td align="left" valign="top">&nbsp;</td>
          </tr>
          <tr>
            <td height="10"></td>
          </tr>
          <tr>
            <td align="right" valign="top">&nbsp;</td>
          </tr>
          
          <tr>
            <td align="left" valign="top"><table width="655" border="0" align="left" cellpadding="0" cellspacing="0">
              <tr>
                <td width="655" height="35" background="images/box-topbg1.jpg" style="background-repeat:no-repeat; background-position:center top"><table width="600" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="236"><span class="hed-blc"></span><span class="hed-color"> Visit Objectives (Specific) </span></td>
                    <td width="364"><span class="hed-color">Visit Outcomes (Suggestive) </span></td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td background="images/box-mid1.jpg" style="background-repeat:repeat-y; background-position:center top"><table width="654" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td align="left" valign="top" class="content"><ol>
                      <li>introduction</li>
                      <li>Enquiry Generation</li>
                      <li>Lapsed Revival</li>
                      <li>Customer Mapping</li>
                      <li>Resolving Technical Query </li>
                      <li>Tender Quotation Submission</li>
                      <li>Customer Presentation</li>
                      <li>Order Finalisation</li>
                      <li>Handle Rejaction</li>
                      <li>Sales Training(RSM/BM) </li>
                      <li>Cold call </li>
                      <li>Payment/sales tax from</li>
                      <li>collactec</li>
                    </ol></td>
                    <td align="left" valign="top" class="content"><ol>
                      <li>Introduction of RS products/services in the company</li>
                      <li>Recaipl of enquiry(s)</li>
                      <li>potential mapping@building databases</li>
                      <li>Identified requirements</li>
                      <li>techno-commercial offer to be submitted </li>
                      <li>Offer submitted and negotiated</li>
                      <li>Order expected within...(date) </li>
                      <li>Techbical query(details) resolved/alternative proposed</li>
                      <li>presentation Successfully done to ..(nos) of new</li>
                      <li>depit/people </li>
                      <li>New contacts to be visited in next visit </li>
                      <li>Order finalised, Value(Rs.)</li>
                      <li>Discussed and resolved materieal rejection issue(details to</li>
                      <li>be mentioned)</li>
                      <li>Accompanied TSE/BM on sales call(key observation to be reported) </li>
                      <li>Any Other(to specify)</li>
                    </ol></td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td><img src="images/box-topbo1.jpg" width="600" height="14" /></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td align="left" valign="top">&nbsp;</td>
          </tr>
        </table></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      
    </table></td>
  </tr>
  <tr>
    <td height="40" align="left" valign="top" bgcolor="#0B0B0B">&nbsp;</td>
  </tr>
</table></form>
</body>
</html>
<script type="text/javascript">
$("#ok").click(function(){

var b= $("#editor").val();
//alert(b);
var cls=$('#editor').attr('class');
//alert(cls);

var text=$('#nst'+cls).val(b);
$('#bulletinDialog').dialog('close');

//alert(text.val());
});

</script>
<script type="text/javascript">
$("#save").click(function(){

var b= $("#remarksEditor").val();
//alert(b);
var cls=$('#remarksEditor').attr('class');
//alert(cls);

var text=$('#rem'+cls).val(b);
$('#remarksDialog').dialog('close');

//alert(text.val());
});

</script>
<script type="text/javascript">
/*function showcombo()
{
var n=document.getElementById("elp1");
var x=document.getElementById("elp2");
var f=document.getElementById("elp3");
n.style.display="none";
x.style.display="none";
f.style.display="none";
var m=document.getElementById("select");
var y=document.getElementById("select");
var g=document.getElementById("select");
y.style.display="inline";
m.style.display="inline";
g.style.display="inline";
}*/
/*function dispval(gval){
var txt=document.getElementById("elp1");
//alert(gval.value);
var txt2=document.getElementById("elp2");
var txt3=document.getElementById("elp3");
var m=document.getElementById("select");
var n=document.getElementById("select");
var o=document.getElementById("select");
if(gval.value=="Existing"){

m.style.display="none";
$("#elp1").val("E");
txt.style.display="inline";
}
if(gval.value=="Lapsed")
{

n.style.display="none";
$("#elp2").val("L");
txt2.style.display="inline";
}
if(gval.value=="Project"){

o.style.display="none";
$("#elp3").val("P");
txt3.style.display="inline";
}
}*/
</script>
<script type = "text/javascript">
function update() {
var counter = 0;
var tab=document.getElementById("infoTable");
var rowCount = tab.rows.length;
//alert(rowCount);
for(var i=1;i<rowCount;i++)
{
var a = $("#org"+i).val();
//alert(a);
a = a.replace(/^\s+|\s+$/g,""); // strip leading and trailing spaces
if (a!="") {counter ++;}
document.myform.count.value = counter;
}
}

</script>
<script>
function validate(){
$("#").
}
</script>